package com.johnny.xia.game;

public class SystemControl{

    int lineNum;

    int card;

    public SystemControl(int lineNum, int card){
        super();
        this.lineNum = lineNum;
        this.card = card;
    }

    public int getLineNum(){
        return lineNum;
    }

    public int getCard(){
        return card;
    }

    public void setLineNum(int lineNum){
        this.lineNum = lineNum;
    }

    public void setCard(int card){
        this.card = card;
    }

    @Override
    public int hashCode(){
        final int prime = 31;
        int result = 1;
        result = prime * result + card;
        result = prime * result + lineNum;
        return result;
    }

    @Override
    public boolean equals(Object obj){
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        SystemControl other = (SystemControl) obj;
        if (card != other.card)
            return false;
        if (lineNum != other.lineNum)
            return false;
        return true;
    }

}
